import Blender as B
import mesh2vec.Material as M

def scene(sce):
	#TODO: mesh2vec.blender.convert.scene()
	pass

def material(mat):
	#TODO: mesh2vec.blender.convert.material()
    #TODO: need proper materials editor for this to work nicely
    mat_props = dict()
    mat_props["name"] = mat.name
    mat_props["fill_color"] = [mat.R, mat.G, mat.B]
    mat_props["line_color"] = M.default_line_color
    mat_props["line_weight"] = M.default_lineweight
    mat_props["alpha"] = None
    if mat.getMode() & B.Material.Modes['ZTRANSP']:
        mat_props["alpha"] = mat.getAlpha()
    mat_props["section"] = M.default_section
    return Material(**mat_props)

def mesh(me):
	#TODO: mesh2vec.blender.convert.mesh()
	pass

def camera(cam):
	#TODO: mesh2vec.blender.convert.camera()
	pass
